package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kust.smarthome.web.model.DeviceState;
import com.kust.smarthome.web.vo.DeviceStateVo;
import com.kust.smarthome.web.vo.DeviceVo;

import java.util.List;

public interface IDeviceStateService extends IService<DeviceState> {
    void insert(DeviceState deviceState);

    DeviceState getState(Integer deviceId, Integer typeId);

    int updateDevice(DeviceStateVo deviceStateVo);

    List<DeviceState> findOperationList(Integer deviceId, Integer typeId);

    boolean setupdate(Integer id);
}
